package cloud.xlh.dynamic_env_refresh_server;


import cloud.xlh.dynamic_env_refresh_server.event.Subscriber;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/3/15 16:25
 * @ Description:
 */
public class NotifyCenter {
    private final ConcurrentHashSet<Subscriber> subscribers = new ConcurrentHashSet<>();

    public void registerSubscriber(Subscriber subscriber) {
        subscribers.add(subscriber);
    }

    public ConcurrentHashSet<Subscriber> getSubscribers() {
        return this.subscribers;
    }
}
